import request from '@/utils/request'

// 查询运单签收列表
export function listSign(query) {
  return request({
    url: '/waybills/waybill/list',
    method: 'get',
    params: query
  })
}

// 查询运单签收详细
export function getSign(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'get'
  })
}

// 新增运单签收
export function addSign(data) {
  return request({
    url: '/waybills/waybill',
    method: 'post',
    data: data
  })
}

// 修改运单签收
export function updateSign(data) {
  return request({
    url: '/waybills/waybill',
    method: 'put',
    data: data
  })
}

// 删除运单签收
export function delSign(wayBillId) {
  return request({
    url: '/waybills/waybill/' + wayBillId,
    method: 'delete'
  })
}

// 批量运单签收
export function sign(wayBillId, data) {
  return request({
    url: '/waybills/waybill/sign/' + wayBillId,
    method: 'put',
    data: data
  })
}
